import Vue from 'vue'
import Vuex from 'vuex'
import gis from './modules/gis'
import getters from './getters'

Vue.use(Vuex)
const store = new Vuex.Store({
    getters,
    modules: {
        gis,
    }
})
if (module.hot) {
    module.hot.accept([
        './getters',
        './modules/gis',
    ], () => {
        store.hotUpdate({
            getters: require('./getters').default,
            modules: {
                gis: require('./modules/gis').default,
            }
        })
    })
}

export default store
